micro_utils.dokka
0.13.0
android
common
jvm
micro_utils.dokka
/
dev.inmo.micro_utils.selector
/
[common]Selector
Selector
common
interface
Selector
<
T
>
Content copied to clipboard
Unified interface which can be used in any system which require some selection functionality
Functions
Properties
Extensions
Inheritors
Functions
clear
Selection
Link copied to clipboard
common
abstract
suspend
fun
clearSelection
(
)
Content copied to clipboard
force
Deselect
Link copied to clipboard
common
abstract
suspend
fun
forceDeselect
(
element
:
T
)
Content copied to clipboard
force
Select
Link copied to clipboard
common
abstract
suspend
fun
forceSelect
(
element
:
T
)
Content copied to clipboard
toggle
Selection
Link copied to clipboard
common
abstract
suspend
fun
toggleSelection
(
element
:
T
)
Content copied to clipboard
Properties
item
Selected
Link copied to clipboard
common
abstract
val
itemSelected
:
SharedFlow
<
T
>
Content copied to clipboard
item
Unselected
Link copied to clipboard
common
abstract
val
itemUnselected
:
SharedFlow
<
T
>
Content copied to clipboard
selected
Items
Link copied to clipboard
common
abstract
val
selectedItems
:
List
<
T
>
Content copied to clipboard
Inheritors
SingleSelector
Link copied to clipboard
MultipleSelector
Link copied to clipboard
Extensions
contains
Link copied to clipboard
android
common
jvm
inline operator
fun
<
T
>
Selector
<
T
>
.
contains
(
element
:
T
)
:
Boolean
Content copied to clipboard
inline operator
fun
<
T
>
Selector
<
T
>
.
contains
(
element
:
T
)
:
Boolean
Content copied to clipboard
inline operator
fun
<
T
>
Selector
<
T
>
.
contains
(
element
:
T
)
:
Boolean
Content copied to clipboard
force
Deselect
Link copied to clipboard
android
common
jvm
inline suspend
fun
<
T
>
Selector
<
T
>
.
forceDeselect
(
elements
:
List
<
T
>
)
Content copied to clipboard
inline suspend
fun
<
T
>
Selector
<
T
>
.
forceDeselect
(
firstElement
:
T
,
vararg
elements
:
T
)
Content copied to clipboard
inline suspend
fun
<
T
>
Selector
<
T
>
.
forceDeselect
(
elements
:
List
<
T
>
)
Content copied to clipboard
inline suspend
fun
<
T
>
Selector
<
T
>
.
forceDeselect
(
firstElement
:
T
,
vararg
elements
:
T
)
Content copied to clipboard
inline suspend
fun
<
T
>
Selector
<
T
>
.
forceDeselect
(
elements
:
List
<
T
>
)
Content copied to clipboard
inline suspend
fun
<
T
>
Selector
<
T
>
.
forceDeselect
(
firstElement
:
T
,
vararg
elements
:
T
)
Content copied to clipboard
force
Select
Link copied to clipboard
android
common
jvm
inline suspend
fun
<
T
>
Selector
<
T
>
.
forceSelect
(
elements
:
List
<
T
>
)
Content copied to clipboard
inline suspend
fun
<
T
>
Selector
<
T
>
.
forceSelect
(
firstElement
:
T
,
vararg
elements
:
T
)
Content copied to clipboard
inline suspend
fun
<
T
>
Selector
<
T
>
.
forceSelect
(
elements
:
List
<
T
>
)
Content copied to clipboard
inline suspend
fun
<
T
>
Selector
<
T
>
.
forceSelect
(
firstElement
:
T
,
vararg
elements
:
T
)
Content copied to clipboard
inline suspend
fun
<
T
>
Selector
<
T
>
.
forceSelect
(
elements
:
List
<
T
>
)
Content copied to clipboard
inline suspend
fun
<
T
>
Selector
<
T
>
.
forceSelect
(
firstElement
:
T
,
vararg
elements
:
T
)
Content copied to clipboard
item
Selection
Flow
Link copied to clipboard
android
common
jvm
fun
<
T
>
Selector
<
T
>
.
itemSelectionFlow
(
element
:
T
,
scope
:
CoroutineScope
)
:
SharedFlow
<
Boolean
>
Content copied to clipboard
fun
<
T
>
Selector
<
T
>
.
itemSelectionFlow
(
element
:
T
,
scope
:
CoroutineScope
)
:
SharedFlow
<
Boolean
>
Content copied to clipboard
fun
<
T
>
Selector
<
T
>
.
itemSelectionFlow
(
element
:
T
,
scope
:
CoroutineScope
)
:
SharedFlow
<
Boolean
>
Content copied to clipboard
nothing
Selected
Link copied to clipboard
android
common
jvm
inline
fun
<
T
>
Selector
<
T
>
.
nothingSelected
(
)
:
Boolean
Content copied to clipboard
inline
fun
<
T
>
Selector
<
T
>
.
nothingSelected
(
)
:
Boolean
Content copied to clipboard
inline
fun
<
T
>
Selector
<
T
>
.
nothingSelected
(
)
:
Boolean
Content copied to clipboard
toggle
Selection
Link copied to clipboard
android
common
jvm
inline suspend
fun
<
T
>
Selector
<
T
>
.
toggleSelection
(
elements
:
List
<
T
>
)
Content copied to clipboard
inline suspend
fun
<
T
>
Selector
<
T
>
.
toggleSelection
(
firstElement
:
T
,
vararg
elements
:
T
)
Content copied to clipboard
inline suspend
fun
<
T
>
Selector
<
T
>
.
toggleSelection
(
elements
:
List
<
T
>
)
Content copied to clipboard
inline suspend
fun
<
T
>
Selector
<
T
>
.
toggleSelection
(
firstElement
:
T
,
vararg
elements
:
T
)
Content copied to clipboard
inline suspend
fun
<
T
>
Selector
<
T
>
.
toggleSelection
(
elements
:
List
<
T
>
)
Content copied to clipboard
inline suspend
fun
<
T
>
Selector
<
T
>
.
toggleSelection
(
firstElement
:
T
,
vararg
elements
:
T
)
Content copied to clipboard